import 'package:flustars_flutter3/flustars_flutter3.dart';
import 'package:flutter/material.dart';
import 'package:ls_work/res/styles.dart';
import 'package:ls_work/widgets/load_image.dart';

class DynamicTopView extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        width: double.infinity,
        padding: EdgeInsets.fromLTRB(20, 20, 12, 8),
        child: Row(
            mainAxisAlignment: MainAxisAlignment.start,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: <Widget>[
              LoadAssetImage(
                'mine/me_icon',
                width: 40,
                height: 40,
              ),
              SizedBox(width: 13,),
              Column(
                mainAxisAlignment: MainAxisAlignment.start,
                crossAxisAlignment: CrossAxisAlignment.start,
                children: <Widget>[
                  Container(
                    width: ScreenUtil.getScreenW(context) - 85,
                    child: Row(
                      mainAxisAlignment: MainAxisAlignment.start,
                      children: <Widget>[
                        Text(
                          '应成龙',
                          style: TextStyles.textBoldDark16,
                        ),
                        SizedBox(
                          width: 10,
                        ),
                        Text(
                          '11-23 09:34',
                          style: TextStyles.textGray14,
                        ),
                      ],
                    ),
                  ),
                  SizedBox(
                    height: 5,
                  ),
                  Text(
                    '护理3级  五马渡  2#1-02',
                    style: TextStyles.textGray12,
                  ),
                ],
              ),
            ]));
  }
}
